#coding=utf-8
__author__ = 'TANUKI'

import pytest
import allure
import time, re, os, sys

sys.path.append("..")


sys.path.append("../ReleasePage")
# from 文件名 import Class名
from Case001_Login import Login
from Case002_IntoMyself_tv import IntoMyself_tv
from Case003_IntoSetting import IntoSetting
from Case004_DeviceManage import DeviceManage
from Case005_LoginRecord import LoginRecord
from Case006_IntoAbout import IntoAbout
from Case007_CheckVersion import CheckVersion
from Case008_YinSiZhengCe import YinSiZhengCe
from Case009_FuWuXieYi import FuWuXieYi
from public import *

class Test_HengTian_Setting():

    @allure.feature('用例名称:登录恒天财富账号')
    def test_Setting_001Login(self):
        """
        前置条件：
        安装恒天财富APP
        测试步骤：
        1.Appium启动恒天财富APP
        2.如未直接进入登陆页面，则在首页点击"登录"按钮
        3.输入自然人的11位手机号(账号)
        4.输入登陆密码
        5.点击登录按钮
        期望结果：
        登录成功，页面跳转到首页
        检查点：
        无
        测试后续步骤：
        无
        """
        userid = 'XXXXXXXXXXXXX '
        psw = 'XXXXXXXXXX '
        TestResult = Login.Login(Driver.driver, userid, psw)
        #此文件为业务代码，删除重要信息只留框架
        assert TestResult == True




if __name__ == "__main__":
    ENV = environment()
    if int(ENV) == 1:
        pytest.main()
    elif int(ENV)== 2:
        pytest.main(['start_001_Myself_tv_Setting.py', "-s", "-v"])
